package fr.efrei.musicpliz.entity;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Transient;

@Entity
@DiscriminatorValue(value = "particulier")
@SuppressWarnings("serial")
public class ClientParticulier extends Compte {
	
	private String prenom;
	
	private String instrument;
	
	public ClientParticulier()  {
		// empty constructor (for example for generic search)
	}

	public ClientParticulier(String nom, String prenom, String adresse,
			int codePostal, String ville, String numero, String instrument,
			String mail, String password, Date naissance) {
		super(nom, adresse, codePostal, ville, numero, mail, password,
				naissance);
		this.prenom = prenom;
		this.instrument = instrument;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getInstrument() {
		return instrument;
	}

	public void setInstrument(String instrument) {
		this.instrument = instrument;
	}

	@Transient
	@Override
	public String getCompteString() {
		return "Client Professionnel";
	}
}
